namespace kk.belegungsadapter.spike
{
    public class Equalitytest
    {
        private int Number;

        public bool Equals(Equalitytest other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return other.Number == Number;
        }

        public override bool Equals(object obj)
        {
            if (ReferenceEquals(null, obj)) return false;
            if (ReferenceEquals(this, obj)) return true;
            if (obj.GetType() != typeof (Equalitytest)) return false;
            return Equals((Equalitytest) obj);
        }

        public override int GetHashCode()
        {
            return Number;
        }
    }
}